<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*, com.systop.ltbook.book.press.model.Press" %>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <%@ include file="/common/taglibs.jsp"%>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>中国校校通</title>
  <%@include file="/pages/new/resources.jsp" %>
  <!-- 
  <script src="${ctx}/pages/new/themes/js/scroll.js" type="text/javascript" ></script>
  <script src="${ctx}/pages/new/themes/js/jquery-1.4.2.min.js" type="text/javascript"></script>
  <script src="${ctx}/pages/new/themes/js/index201012.js" type="text/javascript"></script>
  <script src="${ctx}/pages/new/themes/js/floatdiv.js" type="text/javascript"></script>
   -->
<style type="text/css">
.charName{
	border:1px solid #FFF;
	float: left; 
	text-align: center; 
	margin: 4px 3px 0px 3px; 
	padding: 3px 6px;
}
.pressName{
	float:left;
	cursor: pointer;
	width:140px;
	height:25px;
	line-height:25px;
	margin:5px 10px;
	text-align: left;
	white-space:nowrap;
	word-break:keep-all;
	overflow:hidden;
	text-overflow:ellipsis;
}

</style>
</head>
<body>
<%@include file="/pages/new/index_top.jsp" %>
<s:hidden id="bookType" name="bookType" />
<table width="1002" height="38" border="0" align="center" cellpadding="0" cellspacing="0"  style="margin-bottom:5px;">
  <tr>
    <td background="${ctx}/images/lt_new/s_bg.gif" style="padding-left: 20px; color: green;">
		&nbsp;<B>出版社分类</B>，选择出版社可查看该出版社全本图书。
    </td>
  </tr>
</table>
<%
	String a2z = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z";
	String[] a2zArray = a2z.split(",");
	Map<String, List<Press>> pressMaps = (Map<String, List<Press>>)request.getAttribute("pressMaps");
	
%>
<table width="1000" height="379" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="762" height="377" valign="top" style="border-right: 1px solid #C0C0C0;">
      <table width="750" cellpadding="0" cellspacing="0" border="0" align="center">
        <tr>
          <td colspan="2" style="border-bottom: 1px solid #C0C0C0;">
            <div class="charName" style="color: red;">
            	<b>根据拼音首字母检索：</b>
            </div>
            <% for(String charName : a2zArray){ %>
              <div class="charName" onmousemove="this.style.border='1px solid #C0C0C0'" onmouseout="this.style.border='1px solid #FFF'">
                <a href="#<%=charName%>"><%=charName %></a>
              </div>
            <% }%>
          </td>
        </tr>
		<% for(String charName : a2zArray){ %>
	        <tr>
	          <td width="30" align="center" valign="top" height="20" style="border-bottom: 1px dotted #C0C0C0; padding-top:20px;">
	            <a name="#<%=charName%>"><b><%=charName%></b></a>
	          </td>
	          <td width="660" style="border-bottom: 1px dotted #C0C0C0; padding: 10px 0px;">
	            <%for (Press p : pressMaps.get(charName)){%>
			      <div class="pressName">
			        <a href="${ctx}/mainbook/index.do?pressId=<%=p.getId()%>&currentPage=0" title="<%=p.getName() %>"><%=p.getName()%></a>
			      </div>
			    <%}%>
			    &nbsp;
	          </td>
	        </tr>
		<%}%>
       </table>
	  </td>
	  <td width="250" valign="top" align="center">
	  	<iframe width="250" frameborder="0" scrolling="no" src="${ctx}/mainbook/recommend.do" height="500"></iframe>
	  </td>
	</tr>
</table>
<br/><br/><br/>
<%--@include file="/pages/new/footbar.jsp" --%>
</body>
</html>